<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>

    <!-- Basic -->
    <meta charset="UTF-8"/>

    <title>自动下单系统autobet</title>

    <!-- Mobile Metas -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>

    <!-- Import google fonts -->

    <!-- Favicon and touch icons -->
    <link rel="shortcut icon" href="./assets/ico/favicon.ico" type="image/x-icon"/>
    <link rel="apple-touch-icon" href="./assets/ico/apple-touch-icon.png"/>
    <link rel="apple-touch-icon" sizes="57x57" href="./assets/ico/apple-touch-icon-57x57.png"/>
    <link rel="apple-touch-icon" sizes="72x72" href="./assets/ico/apple-touch-icon-72x72.png"/>
    <link rel="apple-touch-icon" sizes="76x76" href="./assets/ico/apple-touch-icon-76x76.png"/>
    <link rel="apple-touch-icon" sizes="114x114" href="./assets/ico/apple-touch-icon-114x114.png"/>
    <link rel="apple-touch-icon" sizes="120x120" href="./assets/ico/apple-touch-icon-120x120.png"/>
    <link rel="apple-touch-icon" sizes="144x144" href="./assets/ico/apple-touch-icon-144x144.png"/>
    <link rel="apple-touch-icon" sizes="152x152" href="./assets/ico/apple-touch-icon-152x152.png"/>

    <!-- start: CSS file-->

    <!-- Vendor CSS-->
    <link href="./assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet"/>
    <link href="./assets/vendor/skycons/css/skycons.css" rel="stylesheet"/>
    <link href="./assets/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet"/>
    <link href="./assets/vendor/css/pace.preloader.css" rel="stylesheet"/>

    <!-- Plugins CSS-->
    <link href="./assets/plugins/jquery-ui/css/jquery-ui-1.10.4.min.css" rel="stylesheet"/>
    <link href="./assets/plugins/scrollbar/css/mCustomScrollbar.css" rel="stylesheet"/>
    <link href="./assets/plugins/bootkit/css/bootkit.css" rel="stylesheet"/>
    <link href="./assets/plugins/magnific-popup/css/magnific-popup.css" rel="stylesheet"/>
    <link href="./assets/plugins/fullcalendar/css/fullcalendar.css" rel="stylesheet"/>
    <link href="./assets/plugins/jqvmap/jqvmap.css" rel="stylesheet"/>

    <!-- Theme CSS -->
    <link href="./assets/css/jquery.mmenu.css" rel="stylesheet"/>

    <!-- Page CSS -->
    <link href="./assets/css/style.css" rel="stylesheet"/>
    <link href="./assets/css/add-ons.min.css" rel="stylesheet"/>

    <!-- end: CSS file-->
    <link href="./css/fakeLoader.css" rel="stylesheet"/>
    <link href="./css/index.css" rel="stylesheet"/>
    <link rel="stylesheet" href="./css/ball.css"/>
    <link rel="stylesheet" href="./assets/plugins/bootstrap-datepicker/css/datepicker3.css"/>

    <!-- Head Libs -->
    <script src="./assets/plugins/modernizr/js/modernizr.js"></script>
    <!-- G2 -->
    <script src="./assets/js/G2.js"></script>

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body>
<!-- Start: Header -->
<div class="navbar" role="navigation">
    <div class="container-fluid container-nav">
        <!-- Navbar Action -->
        <ul class="nav navbar-nav navbar-actions navbar-left">
            <li class="visible-md visible-lg"><a href="#" id="main-menu-toggle"><i class="fa fa-th-large"></i></a></li>
            <li class="visible-xs visible-sm"><a href="#" id="sidebar-menu"><i class="fa fa-navicon"></i></a></li>
        </ul>
        <!-- Navbar Left -->

        <!-- Navbar Right -->
        <div class="navbar-right">
            <!-- Notifications -->
            <ul class="notifications hidden-xs">
                <li>
                    <h4>AUTOBET自动博彩系统</h4>
                </li>
            </ul>
            <!-- End Notifications -->
            <!-- Userbox -->

            <!-- End Userbox -->
        </div>
        <!-- End Navbar Right -->
    </div>
</div>
<!-- End: Header -->
<div class="copyrights">Dev from <a href="#">leo</a></div>

<!-- Start: Content -->
<div class="container-fluid content">

    <div class="row">

        <!-- Sidebar -->
        <div class="sidebar">
            <div class="sidebar-collapse">
                <!-- Sidebar Header Logo-->
                <div class="sidebar-header">
                    <img src="./assets/img/logo.png" class="img-responsive" alt=""/>
                </div>
                <!-- Sidebar Menu-->
                <div class="sidebar-menu">
                    <nav id="menu" class="nav-main" role="navigation">
                        <ul class="nav nav-sidebar">
                            <div class="panel-body text-center">
                                <div class="flag">
                                    <img src="./assets/img/flags/USA.png" class="img-flags" alt=""/>
                                </div>
                            </div>
                            <li class="active">
                                <a href="index.html">
                                    <i class="fa fa-laptop" aria-hidden="true"></i><span>控台主页</span>
                                </a>
                            </li>
                            <li>
                                <a href="index.html">
                                    <i class="fa fa-laptop" aria-hidden="true"></i><span>高级设置</span>
                                </a>
                            </li>
                            <li>
                                <a href="h2-console" target="_blank">
                                    <i class="fa fa-laptop" aria-hidden="true"></i><span>数据管理</span>
                                </a>
                            </li>

                        </ul>
                    </nav>
                </div>
                <!-- End Sidebar Menu-->
            </div>
            <!-- Sidebar Footer-->
            <div class="sidebar-footer">
                <ul class="sidebar-terms bk-margin-top-10">
                    <li><a href="#">说明帮助</a></li>
                    <li><a href="#">开发信息</a></li>
                </ul>
            </div>
            <!-- End Sidebar Footer-->
        </div>
        <!-- End Sidebar -->

        <!-- Main Page -->
        <div class="main ">
            <!-- Page Header -->
            <div class="page-header">
                <div class="pull-left">
                    <ol class="breadcrumb visible-sm visible-md visible-lg">
                        <li><a href="index.html"><i class="icon fa fa-home"></i>Home</a></li>
                        <li class="active"><i class="fa fa-laptop"></i>控台主页</li>
                    </ol>
                </div>
                <div class="pull-right">
                    <h2>Dashboard</h2>
                </div>
            </div>
            <!-- End Page Header -->
            <div class="row">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <div class="row">
                        <div class="panel bk-widget bk-border-off">
                            <div class="panel-body text-left bk-bg-white bk-padding-top-10 bk-padding-bottom-10">
                                <ul id="myTab" class="nav nav-tabs">
                                    <li class="active">
                                        <a href="#setting" data-toggle="tab">下注设置</a>
                                    </li>
                                    <!--<li>-->
                                        <!--<a href="#visualization" data-toggle="tab">图表</a>-->
                                    <!--</li>-->
                                </ul>
                                <div id="myTabContent" class="tab-content">
                                    <div class="tab-pane fade in active" id="setting">
                                        <div class="row">

                                            <!--配置表单-->
                                            <div class="panel panel-default bk-bg-white">
                                                <div class="panel-heading bk-bg-white">
                                                    <h6><i class="fa fa-indent red"></i>系统基础配置</h6>
                                                    <div class="panel-actions">
                                                        <a href="#" class="btn-minimize"><i class="fa fa-caret-up"></i></a>
                                                        <a href="#" class="btn-close"><i class="fa fa-times"></i></a>
                                                    </div>
                                                </div>
                                                <div class="panel-body" style="display: block;padding-left:30px;">

                                                    <!--<iframe style="display: none" id="initIrame" src="" target="_self"></iframe>-->
                                                    <form id="formSystemPara" action="/initSystemParaAndBeginBet"
                                                          method="post" class="form-inline" target="initIrame">

                                                        <div class="row">
                                                            <div class="form-group">
                                                                <label class="control-label"
                                                                       for="accountId">账号ID&nbsp;</label>
                                                                <input type="text" id="accountId" name="accountId"
                                                                       class="form-control" placeholder="账号ID"
                                                                       th:value="${envConfigService.accountId}"/>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="control-label"
                                                                       for="cookie">登录COOKIE</label>
                                                                <input type="text" id="cookie" name="cookie"
                                                                       class="form-control" placeholder="登录COOKIE"
                                                                       th:value="${envConfigService.cookie}"/>
                                                            </div>
                                                            <div class="form-group">
                                                                <button id="btnBeginBet"
                                                                        class="bk-margin-5 btn btn-labeled btn-success"
                                                                        type="button">
                                                                    <span class="btn-label"><i class="fa fa-check"></i></span>
                                                                    执行下单
                                                                </button>
                                                            </div>
                                                            <!--<div class="form-group">-->
                                                                <!--<div class="row myyk">-->
                                                                    <!--模拟累计总盈亏：<span id="spanAllmoneytake"-->
                                                                                  <!--class="myykmoney" style=""></span>￥-->
                                                                    <!--下注累计总盈亏：<span id="spanAllRealMoneytake"-->
                                                                                  <!--class="myykmoney" style=""></span>￥-->
                                                                <!--</div>-->
                                                            <!--</div>-->
                                                        </div>

                                                        <div class="row">
                                                            <!--<div class="form-group">-->
                                                                <!--<label class="control-label"-->
                                                                       <!--for="preAmount">投注基数</label>-->
                                                                <!--<input type="text" name="preAmount" class="form-control"-->
                                                                       <!--id="preAmount" placeholder="投注基数"-->
                                                                       <!--th:value="${envConfigService.preAmount}"/>-->
                                                            <!--</div>-->
                                                            <!--<div class="form-group">-->
                                                                <!--<label class="control-label" for="moneytakeRate">投注赔率&nbsp;</label>-->
                                                                <!--<input type="text" name="moneytakeRate"-->
                                                                       <!--class="form-control" id="moneytakeRate"-->
                                                                       <!--placeholder="投注赔率"-->
                                                                       <!--th:value="${envConfigService.moneytakeRate}"/>-->
                                                            <!--</div>-->
                                                            <div class="form-group">
                                                                <label class="control-label" for="selectPeriod">统计期数&nbsp;</label>
                                                                <input type="number" min="1" name="selectPeriod"
                                                                       class="form-control" id="selectPeriod"
                                                                       placeholder="统计期数"
                                                                       th:value="${envConfigService.selectPeriod}"/>
                                                            </div>
                                                            <div class="form-group">
                                                                <div style="display: none;">
                                                                    <label class="control-label"
                                                                           for="queryResultIntervalTime">查询间隔&nbsp;</label>
                                                                    <input type="text" name="queryResultIntervalTime"
                                                                           class="form-control"
                                                                           id="queryResultIntervalTime"
                                                                           placeholder="查询间隔"
                                                                           th:value="${envConfigService.queryResultIntervalTime}"/>
                                                                </div>
                                                                <label class="control-label" for="queryBetUrl">下注网站&nbsp;</label>
                                                                <input type="text" name="queryBetUrl"
                                                                       class="form-control" id="queryBetUrl"
                                                                       placeholder="下注网站"
                                                                       th:value="${envConfigService.queryBetUrl}"/>
                                                            </div>
                                                            <div class="form-group">
                                                                <button id="btnStopSystem"
                                                                        class="bk-margin-5 btn btn-labeled btn-success"
                                                                        type="button">
                                                                    <span class="btn-label"><i class="fa fa-times"></i></span>
                                                                    停止下单
                                                                </button>
                                                            </div>
                                                            <!--<div class="form-group">-->
                                                                <!--<div class="row myyk">-->
                                                                    <!--当日模拟累计总盈亏：<span id="spanAllmoneytakeByDate"-->
                                                                                    <!--class="myykmoney" style=""></span>￥-->
                                                                    <!--当日下注累计总盈亏：<span id="spanAllRealMoneytakeByDate"-->
                                                                                    <!--class="myykmoney" style=""></span>￥-->
                                                                <!--</div>-->
                                                            <!--</div>-->

                                                        </div>
                                                        <div class="row">
                                                            <div class="form-group">
                                                                <label class="control-label"
                                                                       for="accountId">历史查询&nbsp;</label>
                                                                <input type="text" id="searchDate" name="searchDate"
                                                                       class="form-control" placeholder="查询日期"
                                                                       value="" readonly = "true"/>
                                                            </div>
                                                        </div>
                                                    </form>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <!--<div class="tab-pane fade in active" id="visualization">-->
                                        <!--<div class="row">-->
                                            <!--<div class="panel panel-default bk-bg-white">-->
                                                <!--<div class="panel-heading bk-bg-white">-->
                                                    <!--<h6><i class="fa fa-indent red"></i>图表</h6>-->
                                                    <!--<div class="panel-actions">-->
                                                        <!--<a href="#" class="btn-minimize"><i class="fa fa-caret-up"></i></a>-->
                                                        <!--<a href="#" class="btn-close"><i class="fa fa-times"></i></a>-->
                                                    <!--</div>-->
                                                <!--</div>-->
                                                <!--<div class="panel-body">-->
                                                    <!--<div class="row">-->
                                                        <!--<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">-->
                                                            <!--<div id="visualizationDiv"></div>-->
                                                        <!--</div>-->
                                                    <!--</div>-->

                                                <!--</div>-->
                                            <!--</div>-->

                                        <!--</div>-->
                                    <!--</div>-->
                                </div>

                            </div>
                        </div>
                    </div>
                </div>

            </div>
            <div class="row">
                <div class="row">
                    <div class="col-lg-4 col-md-12 col-sm-12 col-xs-12">
                        <div class="panel bk-widget bk-border-off">
                            <div class="panel-body text-left bk-bg-white bk-padding-top-10 bk-padding-bottom-10">
                                <div class="row">
                                    <div class="panel-heading bk-bg-white">
                                        <h6><i class="fa fa-bar-chart-o red"></i>系统执行情况</h6>
                                    </div>
                                    <div id="divSystemInfo" class="clearfix  bk-padding-top-10 myDivInfo">
                                        <!--系统执行的情况 -->
                                    </div>
                                    <a><h6 class="text-right bk-padding-top-20 bk-margin-off">Withdraw</h6></a>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-8 col-md-12 col-sm-12 col-xs-12">
                        <!--<div class="panel bk-widget bk-border-off">
                            <div class="panel-body text-left bk-bg-white bk-padding-top-10 bk-padding-bottom-10">
                                <div class="row">
                                    <div class="panel-heading bk-bg-white">
                                        <h6><i class="fa fa-indent red"></i>投注开奖情况</h6>
                                    </div>
                                    <div id="divQueryResult" class="clearfix  bk-padding-top-10 myDivInfo">
                                    </div>
                                    <a><h6 class="text-right bk-padding-top-20 bk-margin-off">Withdraw</h6></a>
                                </div>
                            </div>
                        </div>-->
                        <div class="tabs tabs-success">
                            <ul class="nav nav-tabs">
                                <li class="active">
                                    <a href="#dxcontent" data-toggle="tab"><i class="fa fa-bell"></i>开奖</a>
                                </li>
                                <!--<li class="">-->
                                    <!--<a href="#dscontent" data-toggle="tab"><i class="fa fa-bookmark"></i>单双开奖</a>-->
                                <!--</li>-->
                            </ul>
                            <div class="tab-content">
                                <div id="dxcontent" class="tab-pane active">
                                    <div id="divQueryResult" class="clearfix  bk-padding-top-10 myDivInfo">
                                        <!--大小开奖结果-->
                                    </div>
                                </div>
                                <!--<div id="dscontent" class="tab-pane">-->
                                    <!--<div id="divQueryResultDs" class="clearfix  bk-padding-top-10 myDivInfo">-->
                                        <!--&lt;!&ndash;单双开奖结果&ndash;&gt;-->
                                    <!--</div>-->
                                <!--</div>-->
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">

                </div>
            </div>
            <!-- End Main Page -->

            <!-- Footer -->

            <!-- End Footer -->

        </div>
    </div><!--/container-->


    <div class="clearfix"></div>

</div>
<!-- start: JavaScript-->

<div id="fakeloader"></div>
<div id="divWarning" style="display: none;"></div>

<div class="modal fade" id="setCarModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="setCarModalLabel">

                </h4>
            </div>
            <div class="modal-body form-horizontal">
                <div class="row">
                    <div class="form-group">
                        <input type="hidden" id="changeType"/>
                        <input type="hidden" id="changeNO"/>
                        <div class="col-md-3  text-right">
                            <label class="control-label" for="firstBetTypeFlag">当前穿版数</label>
                        </div>
                        <div class="col-md-9">
                            <input type="number" class="form-control" id="changeDieCount"/>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="form-group">
                        <div class="col-md-3  text-right">
                            <label class="control-label" for="firstBetTypeFlag">当前基数</label>
                        </div>
                        <div class="col-md-9">
                            <input type="number" class="form-control" id="changePreAmount"/>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>
                <button type="button" class="btn btn-primary" id="saveCarData">
                    提交更改
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

<!-- Vendor JS-->
<script src="./assets/vendor/js/jquery.min.js"></script>
<script src="./assets/vendor/js/jquery-2.1.1.min.js"></script>
<script src="./assets/vendor/js/jquery-migrate-1.2.1.min.js"></script>
<script src="./assets/vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="./assets/vendor/skycons/js/skycons.js"></script>
<script src="./assets/vendor/js/pace.min.js"></script>

<!-- Plugins JS-->
<script src="./assets/plugins/jquery-ui/js/jquery-ui-1.10.4.min.js"></script>
<script src="./assets/plugins/scrollbar/js/jquery.mCustomScrollbar.concat.min.js"></script>
<script src="./assets/plugins/bootkit/js/bootkit.js"></script>
<script src="./assets/plugins/magnific-popup/js/magnific-popup.js"></script>
<script src="./assets/plugins/moment/js/moment.min.js"></script>
<script src="./assets/plugins/fullcalendar/js/fullcalendar.js"></script>
<script src="./assets/plugins/flot/js/jquery.flot.min.js"></script>
<script src="./assets/plugins/flot/js/jquery.flot.pie.min.js"></script>
<script src="./assets/plugins/flot/js/jquery.flot.resize.min.js"></script>
<script src="./assets/plugins/flot/js/jquery.flot.stack.min.js"></script>
<script src="./assets/plugins/flot/js/jquery.flot.time.min.js"></script>
<script src="./assets/plugins/flot-tooltip/js/jquery.flot.tooltip.js"></script>
<script src="./assets/plugins/chart-master/js/Chart.js"></script>
<script src="./assets/plugins/jqvmap/jquery.vmap.js"></script>
<script src="./assets/plugins/jqvmap/data/jquery.vmap.sampledata.js"></script>
<script src="./assets/plugins/jqvmap/maps/jquery.vmap.world.js"></script>
<script src="./assets/plugins/sparkline/js/jquery.sparkline.min.js"></script>

<!-- Theme JS -->
<script src="./assets/js/jquery.mmenu.min.js"></script>
<script src="./assets/js/core.min.js"></script>

<!-- Pages JS -->
<script src="./assets/js/pages/index.js"></script>

<!-- end: JavaScript-->
<script src="./js/index.js"></script>
<script src="./js/fakeLoader.min.js"></script>
<script src="./assets/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
<script src="./assets/plugins/bootstrap-datepicker/js/bootstrap-datepicker.zh-CN.min.js"></script>
</body>

</html>